#include <nxos.h>
#include <PowerBox.h>

NX_Error PowerBoxBuiltinPwd(int argc, char *argv[], char * env)
{
    char cwd[NX_FILE_MAX_PATH + 1] = {0};

    if (PowerBoxGetCwd(cwd) != NX_EOK)
    {
        return NX_ERROR;
    }
    NX_Printf("%s\r\n", cwd);
    return NX_EOK;
}
